home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1993 April
/
CICA MS Windows - April 1993.iso
/
unzipped
/
desktop
/
bmp2bgi
/
bmp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-03
|
2KB
|
41 lines
//////////////////////////////////////////////////////////////////////////
// BMP.H: Header File
//////////////////////////////////////////////////////////////////////////
typedef struct tagBITMAPFILEHEADER
{
unsigned int bfType; // "BM" or 0x4D42
unsigned long bfSize; // Size of file in bytes
unsigned int bfReserved1; // Set to 0
unsigned int bfReserved2; // Set to 0
unsigned long bfOffBits; // Offset in file where
// the bits begin
} BITMAPFILEHEADER;
typedef struct tagBITMAPINFOHEADER
{
unsigned long biSize; // Size of the structure
unsigned long biWidth; // Width in pixels
unsigned long biHeight; // Height in pixels
unsigned int biPlanes; // # of color Planes: Set to 1
unsigned int biBitCount; // Color bits per pixel
unsigned long biCompression; // Compression Scheme
unsigned long biSizeImage; // Number of bitmap bytes
unsigned long biXPelsPerMeter; // Horizontal Resolution
unsigned long biYPelsPerMeter; // Vertical Resolution
unsigned long biClrUsed; // Number of colors used
unsigned long biClrImportant; // Important colors
} BITMAPINFOHEADER;
#ifndef BMP_OK
#define BMP_OK -1
#define BMP_BadDriver 0
#define BMP_TooBig 1
#define BMP_WrongVideo 2
#define BMP_Compression 3
#endif